package com.cgnpc.scp.common.utils;

import java.net.URLEncoder;

public class UrlUtil {

    public static String urlEncodeWithUTF8(String str) {
        try {
            return URLEncoder.encode(str, "UTF-8")
                    .replace("+", "%20")
                    ;
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }

}
